﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拖动查看图片局部的JS代码</title>
<style type="text/css">
/*Default CSS for pan containers*/
.pancontainer{
position:relative; /*keep this intact*/
overflow:hidden; /*keep this intact*/
width:300px;
height:300px;
border:1px solid black;

}
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="imagepanner.js"></script>
</head>
<body>
<div class="pancontainer" data-orient="center"  style="width:400px; height:300px;">
<img src="test.jpg" style="width:779px;height:515px"/>
</div>
</body>
</html>